﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using YouHP.Model;

namespace YouHP.IDAL
{
    public interface IUserAction
    {
        #region basic operations
        bool AddUserAction(UserActionInfo info);
        bool DeleteUserAction(int[] ids);
        #endregion

        #region list and search operations
        //获得网站某段时间内用户动态
        List<UserActionInfo> GetLatestUserActionList(int pageSize, int pageIndex,int days,out int count);
        //获得某个用户一段时间内动态
        List<UserActionInfo> GetUserActionByUserId(int pageSize, int pageIndex, int uid,int days,out int count);
        //获得某个用户一段时间内某种特定类型的动态
       // List<UserActionInfo> GetUserActionByActionType(int pageSize, int pageIndex, int uid, int hours,int actiontype, out int count);
        //获取用户好友动态列表(分页）
        List<UserActionInfo> GetFriendActionList(int pageSize, int pageIndex, int uid, int days, out int count);
        //获取全部用户好友动态列表
        List<UserActionInfo> GetAllFriendActionList(int uid, int days);
        //获取相同病人的动态列表
        List<UserActionInfo> GetPatientsLikeMeActionList(int uid,int diseaseId, int days);
        #endregion

    }
}